<?php
if ( !defined( "IN_OP" ) )
{
    exit( "You can't access this file directly..." );
}
if ( check_upid_mode( $curruser['id'] ) == 0 )
{
    exit( "You can't access this file directly..." );
}
if ( !isset( $idxGametype ) )
{
    header( "Location: op.php" );
    exit();
}
if ( $idxGametype == 0 )
{
    header( "Location: op.php" );
    exit();
}
$ui = new UI_3D( false, G_SITENAME );
$tpl = new Template2();
$default = "op.php?op=shareowner&fp=login_3d&gametype={$idxGametype}";
if ( isset( $_SESSION['subaccount'] ) && $_SESSION['subaccount'] == 1 )
{
    $default = "op.php?op=agent&fp=onlinebet_3d&gametype={$idxGametype}";
}
$tpl->set( "default_3d_top_src", "op.php?op=shareowner&fp=title_3d&gametype={$idxGametype}" );
$tpl->set( "default_3d", $default );
$tpl->load( "main", "index_3d.htm" );
$ui->header();
$tpl->show( "main" );
$ui->footer();
?>